<template>
  <div>
    <h1>个人中心页面</h1>
    <button @click="$router.push('/login')">去登录</button>
    <button @click="exit">退出登录</button>
  </div>
</template>
<script>
export default {
  setup(props) {
    const exit = () => {
      localStorage.removeItem("token");
    };
    return { exit };
  },
};
</script>
